﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/AdminMaster.master" AutoEventWireup="true" CodeFile="ChangePassword.aspx.cs" Inherits="Admin_ChangePassword" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .auto-style4 {
            height: 33px;
        }
        .auto-style5 {
            height: 21px;
        }
        .shadow {
            box-shadow: inset 0 0 25px #000000;
            border-radius: 6px;
        }
    </style>
    <script src='https://www.google.com/recaptcha/api.js'></script>
    <script type="text/javascript">
        var WindowObjectReference; // global variable
        function onClickLink(strPath) {
                //alert('Download Resume');
            WindowObjectReference = window.open(strPath, "DescriptiveWindowName", "resizable=yes,scrollbars=yes,status=yes");

        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
  <div style=" width:100%;text-align:center;padding-right:100px">    <asp:Label ID="LabelErrorMessage" runat="server" ForeColor="Red" Text="" Visible="false" ></asp:Label></div>
    <asp:ChangePassword ID="ChangePassword1" runat="server" Height="237px" Width="836px" ChangePasswordFailureText="Password change Failed due to Incorrect Current Password please Enter correct  password and try again" OnChangingPassword="ChangePassword1_ChangingPassword" SuccessPageUrl="~/home/PasswordChanged.aspx">
        <ChangePasswordTemplate>
            <table cellpadding="1" cellspacing="0" class="shadow" style="border-collapse:collapse; margin-left:10%;">
                <tr>
                    <td>
                        <table cellpadding="0" style="height:237px;width:836px;">
                            <tr>
                                <td align="center" colspan="2">
                                    <h2>Change Your Password</h2></td>
                            </tr>
                            <tr>
                                <td align="right" class="auto-style4">
                                    <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Password&nbsp;&nbsp;:&nbsp;&nbsp;</asp:Label>
                                </td>
                                <td class="auto-style4"><asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:CustomValidator ValidationGroup="NextValidation" ID="csvEmail" runat="server" ForeColor="red" Display="Dynamic" OnServerValidate="csvEmail_ServerValidate"  ></asp:CustomValidator>
                                    <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword" ErrorMessage="Password is required." ForeColor="Red" ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                    
                                </td>
                            </tr>
                            <tr>
                                <td align="right">&nbsp;</td>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td align="right" class="auto-style4">
                                    <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">New Password&nbsp;&nbsp;:&nbsp;&nbsp;</asp:Label>
                                </td>
                                <td class="auto-style4">
                                    <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword" ErrorMessage="New Password is required." ForeColor="Red" ToolTip="New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                  <%-- <asp:RegularExpressionValidator ID="regEmail" Display="Dynamic" ForeColor="red" ControlToValidate="NewPassword" runat="server" ValidationExpression="((?=.*\W).{7,})" ErrorMessage="Enter New Password having minimum 7 charaters with 1 special character"></asp:RegularExpressionValidator>--%>

                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" class="auto-style5">
                                    <asp:RegularExpressionValidator ID="regEmail" Display="Dynamic" ForeColor="red" ControlToValidate="NewPassword" runat="server" ValidationExpression="((?=.*\W).{7,})" ErrorMessage="Enter New Password having minimum 7 charaters with 1 special character"></asp:RegularExpressionValidator>
                                </td>
                            </tr>

                            <tr>
                                <td align="right" class="auto-style4">
                                    <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirm New Password&nbsp;&nbsp;:&nbsp;&nbsp;</asp:Label>
                                </td>
                                <td class="auto-style4">
                                    <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword" ErrorMessage="Confirm New Password is required." ForeColor="Red" ToolTip="Confirm New Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword" ControlToValidate="ConfirmNewPassword" Display="Dynamic" ForeColor="Red" ErrorMessage="The Confirm New Password must match the New Password entry." ValidationGroup="ChangePassword1"></asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                              <tr>
                                <td colspan="2" align="center" colspan="3">
                                    <%--<asp:CheckBox runat="server" onClick="EnableSubmit()" ID="chkTerm" />--%>&nbsp;&nbsp;I agree to the Konsumer Strategiez Pte. Ltd. <a href="javascript:onClickLink('../Download/TERMS.PDF')">Terms and Privacy including Cookie Use </a>.
                                </td>
                            </tr>
                            <tr><td colspan="2" align="center" colspan="3"><div class="g-recaptcha" data-sitekey="6LeNeRYUAAAAANZGdYSwgAIWtSGmW-kJXniKmrVG"></div></td></tr>
                            <tr>
                                
                                <td align="center" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                    <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword" OnClick="ChangePasswordPushButton_Click" Text="Change Password" ValidationGroup="ChangePassword1" />
                                    <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel" OnClick="CancelPushButton_Click" Text="Cancel" />
                                </td>
                                
                            </tr>
                            <tr>


                                <td align="center" colspan="2">
                                    
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="height:40px;">
                    <td></td>
                </tr>
            </table>
        </ChangePasswordTemplate>
    </asp:ChangePassword>

    
</asp:Content>

